package com.vincent.template.repository;

import com.vincent.template.commons.base.BaseJpaRepository;
import com.vincent.template.domain.SysBindAuthUriPo;

import java.util.Collection;
import java.util.List;

/**
 * @author Vincent Wang
 * @date 2020/12/30 11:17
 */
public interface SysBindAuthUriRepository extends BaseJpaRepository<SysBindAuthUriPo, Long> {
    List<SysBindAuthUriPo> findByAuthIdIn(Collection<Long> authIds);
    List<SysBindAuthUriPo> findByUriId(Long uriId);
    List<SysBindAuthUriPo> findByAuthIdAndUriIdIn(Long authId, Collection<Long> uriIds);
    int deleteByAuthId(Long authId);
}
